package org.jing.r18.game.comm.kirikiri;

import org.jing.r18.game.venusblood.lang.Const;

/**
 * Description: KiriKiri的存档文件 <br>
 *
 * @author: bksmate <br>
 * @createDate: 2025-05-13 <br>
 */
public class KiriKiriKsdFile {
    private byte model;

    private byte[] buffer;

    public byte getModel() {
        return model;
    }

    public void setModel(byte model) {
        this.model = model;
    }

    public byte[] getBuffer() {
        return buffer;
    }

    public void setBuffer(byte[] buffer) {
        this.buffer = buffer;
    }

    public String getContent() {
        return new String(buffer, Const.KIRIKIRI_CHARSET);
    }

    public void setContent(String content) {
        buffer = content.getBytes(Const.KIRIKIRI_CHARSET);
    }

    @Override public String toString() {
        return "<model: " + model + ", buffer: " + buffer.length + ">";
    }
}
